<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{:$i->title}</title>
</head>
<body>
<div class="wrapper">
  <div class="title shadow titleBg">
    <table width="100%" border="0" cellspacing="1">
      <tr>
        <td><h1> {:$i->title} => {:if $i->p[0] eq "mod"}修改{:elseif $i->p[0] eq "add"}添加{:/if} </h1></td>
      </tr>
    </table>
  </div>
  <div class="content shadow">
    <form>
      <table width="100%" border="0" cellspacing="1">        
        <tr>
          <th nowrap="nowrap">标　题：</th>
          <td><input name="title" type="text" id="title" value="" size="60" class="posted" /></td>
        </tr>
        <tr>
          <th nowrap="nowrap">关键词：</th>
          <td><input name="keywords" type="text" id="keywords" value="" size="60" class="posted" /></td>
        </tr>
        <tr>
          <th nowrap="nowrap">描　述：</th>
          <td><textarea name="description" rows="3" id="description" class="posted"></textarea></td>
        </tr>
        <tr>
          <th nowrap="nowrap">文件名：</th>
          <td><input name="fileName" type="text" id="fileName" value="{:$i->Load->var.htmlSaveDir}/single/{:$smarty.now|date_format:'%Y%m%d%H%M%S'}.html" size="40" class="posted check" /> [<a href="#@" class="helpTip" title="相对于安装目录的完整路径">?</a>]</td>
        </tr>
        <tr>
          <th nowrap="nowrap">模板名：</th>
          <td>/template/{:$i->Load->var.style}/<input name="template" type="text" id="template" value="single.tpl" size="20" class="posted check inputLine" /></td>
        </tr>
        <tr>
          <th nowrap="nowrap">内　容：</th>
          <td><textarea name="content" rows="10" id="content" class="posted check"></textarea></td>
        </tr>
        <tr>
          <th nowrap="nowrap">&nbsp;</th>
          <td><input type="submit" value=" 提 交 " />
            &nbsp;
            <input type="reset" onclick="history.go(-1);" value=" 返 回 " />          </td>
        </tr>
      </table>
    </form>
  </div>
</div>
<link href="{:$smarty.const.PUBLIC_DIR}/common/style/admin.css" rel="stylesheet" type="text/css" />
<style type="text/css">
th {text-align:right; width:65px;}
td {text-align:left;}
</style>
<link href="{:$smarty.const.PUBLIC_DIR}/common/style/ui.all.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/jquery-1.4.2.min.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/jquery.tools.min.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.core.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.draggable.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.dialog.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/jquery.post.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function(){
	$(".helpTip").tooltip().dynamic();
	$("form").post({
		sendUrl:'{:$smarty.const.BOOT_URL}/{:$i->c}/{:$i->m}/{:if $i->p[0] eq "mod"}update/{:$i->p[1]}{:elseif $i->p[0] eq "add"}insert{:/if}',
		goUrl:'{:$smarty.const.BOOT_URL}/{:$i->c}/{:$i->m}/lists'
	});
});
</script>
</body>
</html>
